#include "mydialog.h"
#include "ui_mydialog.h"
#include <QMessageBox>
MyDialog::MyDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::MyDialog)
{
    ui->setupUi(this);
}

MyDialog::~MyDialog()
{
    delete ui;
}

void MyDialog::on_pushButton_2_clicked()
{
    this->close();
}

void MyDialog::on_pushButton_clicked()
{
    QMessageBox::StandardButton
        localQuestion = QMessageBox::question(this,"title","保存？");
    if(localQuestion == QMessageBox::Yes){
        this->close();
    }
}
